<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Right triangle</title>
	</head>
	<body>
		<script type="text/javascript">
			for (var a = 1; a < 7; a += 2) {
				for (var c = 6; c >= a; c--) {

					document.write("&nbsp");


				}
				for (var b = 1; b <= 2 * a - 1; b++) {

					document.write("*");

				}

				document.write("<br />");
			}
		</script>
	</body>
</html>
